outreg2  using "/Users/yohan/Desktop/acc.xls", coefastr stats(coef se pval) bdec(3) pdec(3) sdec(3) ctitle() alpha(0.001, 0.01, 0.05, 0.1) br(se) par(pval) symbol(***, **, *, +) replace




***************************************
*** [1-2] two IVs [WE USE IN PAPER] ***
***************************************

***************************************************
ivreg2 fund_til12m_ryv2_w        $venture $acc_capa_rb $acc_end $fe  (work_space acc_length_wk= c.zacc_fb_mm_divers##c.zacc_fb_mm_divers acc_gov acc_gan) if accend_year < 2016 | (accend_year == 2016 & accend_mm <= 5), robust first
ivreg2 fund_til12m_ryv2_w        $venture $acc_capa_rb $acc_end $fe  (work_space acc_length_wk= c.zacc_fb_mm_divers##c.zacc_fb_mm_divers acc_gov acc_gan) if accend_year < 2016 | (accend_year == 2016 & accend_mm <= 5), endog(work_space acc_length_wk)

ivreg2 rt12_to_1m_ryv2_w         $venture $acc_capa_rb $acc_end $fe  (work_space acc_length_wk= c.zacc_fb_mm_divers##c.zacc_fb_mm_divers acc_gov acc_gan) if accend_year < 2016 | (accend_year == 2016 & accend_mm <= 5), robust first
ivreg2 rt12_to_1m_ryv2_w         $venture $acc_capa_rb $acc_end $fe  (work_space acc_length_wk= c.zacc_fb_mm_divers##c.zacc_fb_mm_divers acc_gov acc_gan) if accend_year < 2016 | (accend_year == 2016 & accend_mm <= 5), endog(work_space acc_length_wk)

***************************************************






**************************************
*** Final Models (w/o ACC dummies) ***
**************************************

***************************************************

reg    fund_til12m_ryv2_w                                                                                                  $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)
reg    rt12_to_1m_ryv2_w                                                                                                   $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)

reg    fund_til12m_ryv2_w                           c.sizealum_per_firm##c.work_space                                      $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)
reg    rt12_to_1m_ryv2_w                            c.sizealum_per_firm##c.work_space                                      $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)

reg    fund_til12m_ryv2_w                           c.sizealum_per_firm##c.work_space##c.acc_length_wk                     $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)
reg    rt12_to_1m_ryv2_w                            c.sizealum_per_firm##c.work_space##c.acc_length_wk                     $venture $acc_capa_rb $acc $fe                                   if sample1==1, robust cluster (acc_dm)

***************************************************




margins, dydx(nomentors_per_cohorts_ln) at(work_space=(0 1) acc_length_wk=(11.37 18.59)) post
margins, dydx(sizealum_per_firm       ) at(work_space=(0 1) acc_length_wk=(11.37 18.59)) post


test    1._at = 2._at
lincom  1._at - 2._at

test    1._at = 3._at
lincom  1._at - 3._at

test    1._at = 4._at
lincom  1._at - 4._at

test    2._at = 3._at
lincom  2._at - 3._at

test    2._at = 4._at
lincom  2._at - 4._at

test    3._at = 4._at
lincom  3._at - 4._at





/*

 sum mentors_per_cohort_cagr_w if e(sample)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
mentors_pe~w |      2,650    .7262652    .6624289   .1046047   4.830459


    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
sizealum_p~m |      2,650    4.407156    3.225603          0         16
nomentors_~n |      2,650    1.664007     .835445   .0571584   4.034241
acc_length~k |      2,650    14.98068    3.607797         10       39.1
  work_space |      2,650    .5890566    .4920979          0          1
*/

sum sizealum_per_firm nomentors_per_cohorts_ln acc_length_wk work_space if sample1==1

margins,  at(sizealum_per_firm       =(1.18 7.64) work_space=(0 1)) predict(xb) atmeans
marginsplot, noci

margins,  at(nomentors_per_cohorts_ln=(0.82 2.50) work_space=(0 1)) predict(xb) atmeans
marginsplot, noci


margins,  at(sizealum_per_firm       =(1.18 7.64) work_space=(0 1) acc_length_wk=(11.37 18.59)) predict(xb) atmeans
marginsplot, noci

margins,  at(nomentors_per_cohorts_ln=(0.82 2.50) work_space=(0 1) acc_length_wk=(11.37 18.59)) predict(xb) atmeans
marginsplot, noci

margins,  at(mentors_per_cohort_cagr_w=(0.104 1.388) work_space=(0 1) acc_length_wk=(11.37 18.59)) predict(xb) atmeans
marginsplot, noci




